﻿@model List<Apps.Models.V_LMS_TESTDATA_CONFIRMED>
@using Apps.Web.Core;
@using Apps.Common;
@using Apps.Locale;
@using Apps.Models.Sys;
@using Apps.Models;
@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
    List<permModel> perm = null;
}

<style type="text/css">
    table.gridtable {
        font-family: verdana,arial,sans-serif;
        font-size: 11px;
        color: #333333;
        border-width: 1px;
        border-color: #666666;
        border-collapse: collapse;
    }

        table.gridtable th {
            border-width: 1px;
            text-align: center;
            padding: 8px;
            border-style: solid;
            border-color: #666666;
            background-color: #dedede;
        }

        table.gridtable td {
            text-align: center;
            border-width: 1px;
            padding: 8px;
            border-style: solid;
            border-color: #666666;
            background-color: #ffffff;
        }
</style>

@using (Html.BeginForm())
{
    int i = 1;
    if (Model == null)
    {
        <span>没有原始数据</span>
    }
    else
    {
        <table class="gridtable">
            <thead>
                <tr>

                    <th style="width: 180px">
                        中文名称
                    </th>
                    <th style="width: 180px">
                        英文名称
                    </th>
                    <th style="width: 180px ">
                        化验结果
                    </th>
                    <th style="width: 100px">
                        数值
                    </th>
                </tr>
            </thead>
            <tbody>

                @foreach (var item in Model)
                {
                    <tr>
                        <td style="width: 180px">
                            @item.INDEX_NAME
                        </td>
                        <td style="width: 180px">
                            @item.INDEX_DISNAME
                        </td>
                        <td style="width: 180px">
                            @(item.TEST_TYPE==0?"终值":"第" + (item.TEST_TYPE - 10) + "次化验")
                        </td>
                        <td style="width: 100px">
                            @item.TEST_VALUE
                        </td>
                    </tr>
                    i++;
                }

            </tbody>
        </table>
    }
    @Html.ValidationSummary()
}
